package com.example.front.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * TaxiOperationRecordMapper
 *
 * @author liming2
 * @date 2023/6/1 14:36
 */
@Mapper
public interface OperationRecordMapper {

    @Insert("insert into taxi_operation_record(type,content,operator,operate_time,extra) values(#{type}, #{content}, #{operator}, #{operateTime}, #{extra})")
    int insert(OperationRecordPO recordPO);

    @Select("select * from taxi_operation_record;")
    List<OperationRecordPO> query();
}
